package com.mdz.nc.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2020-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qrtz_triggers")
public class QrtzTriggers extends Model<QrtzTriggers> {

    private static final long serialVersionUID=1L;

    @TableId(value = "sched_name", type = IdType.AUTO)
    private String schedName;

    @TableField("trigger_name")
    private String triggerName;

    @TableField("trigger_group")
    private String triggerGroup;

    @TableField("job_name")
    private String jobName;

    @TableField("job_group")
    private String jobGroup;

    @TableField("description")
    private String description;

    @TableField("next_fire_time")
    private Long nextFireTime;

    @TableField("prev_fire_time")
    private Long prevFireTime;

    @TableField("priority")
    private Integer priority;

    @TableField("trigger_state")
    private String triggerState;

    @TableField("trigger_type")
    private String triggerType;

    @TableField("start_time")
    private Long startTime;

    @TableField("end_time")
    private Long endTime;

    @TableField("calendar_name")
    private String calendarName;

    @TableField("misfire_instr")
    private Integer misfireInstr;

    @TableField("job_data")
    private byte[] jobData;


    @Override
    protected Serializable pkVal() {
        return this.schedName;
    }

}
